This document lists the required and
optional attributes of the OBJECT and EMBED tags
used to publish Flash movies.
For specific
usage information for these attributes, refer to
sections of the Using Flash manual devoted to
using OBJECT and EMBED tags (exact headings vary
among Flash versions). Information is also
available in Macromedia
Flash OBJECT and EMBED tag syntax (TechNote
4150).
CLASSID - Identifies the ActiveX
control for the browser. (See example code in TechNote
4150 for the correct value.) OBJECT
only.
CODEBASE - Identifies the location
of the Flash Player ActiveX control so that the
browser can automatically download it if it is
not already installed. OBJECT only. (See example
code in TechNote
4150 for the correct value.)
WIDTH - Specifies the width of the
movie in either pixels or percentage of browser
window.
HEIGHT - Specifies the height of
the movie in either pixels or percentage of
browser window.
SRC - Specifies the location (URL)
of the movie to be loaded. EMBED only.
PLUGINSPAGE - Identifies the
location of the Flash Player plug-in so that the
user can download it if it is not already
installed. EMBED only. (See example code in TechNote
4150 for the correct
value.)
MOVIE - Specifies the location
(URL) of the movie to be loaded. OBJECT
only.
Optional attributes and possible
values:
ID - Identifies the Flash movie to
the host environment (a web browser, for
example) so that it can be referenced using a
scripting language. OBJECT-specific.
NAME -
Identifies the Flash movie to the host
environment (a web browser, typically) so that
it can be referenced using a scripting language
such as JavaScript or VBScript.
EMBED-specific.
SWLIVECONNECT - (true, false)
Specifies whether the browser should start Java
when loading the Flash Player for the first
time. The default value is false if this
attribute is omitted. If you use JavaScript and
Flash on the same page, Java must be running for
the FSCommand to work.
PLAY - (true, false) Specifies
whether the movie begins playing immediately on
loading in the browser. The default value is
true if this attribute is omitted.
LOOP - (true, false) Specifies
whether the movie repeats indefinitely or stops
when it reaches the last frame. The default
value is true if this attribute is omitted.
MENU (true, false)
True displays the full menu, allowing the
user a variety of options to enhance or control
playback.
False displays a menu that contains only
the Settings option and the About Flash
option.
QUALITY - (low, high, autolow,
autohigh, best )
Low favors playback speed over
appearance and never uses
anti-aliasing.
Autolow emphasizes speed at first
but improves appearance whenever possible.
Playback begins with anti-aliasing turned off.
If the Flash Player detects that the processor
can handle it, anti-aliasing is turned
on.
Autohigh emphasizes playback speed
and appearance equally at first but sacrifices
appearance for playback speed if necessary.
Playback begins with anti-aliasing turned on. If
the actual frame rate drops below the specified
frame rate, anti-aliasing is turned off to
improve playback speed. Use this setting to
emulate the View > Antialias setting in
Flash.
Medium applies some anti-aliasing
and does not smooth bitmaps. It produces a
better quality than the Low setting, but lower
quality than the High setting.
High favors appearance over
playback speed and always applies anti-aliasing.
If the movie does not contain animation, bitmaps
are smoothed; if the movie has animation,
bitmaps are not smoothed.
Best provides the best display
quality and does not consider playback speed.
All output is anti-aliased and all bitmaps are
smoothed.
SCALE - (showall, noborder,
exactfit)
Default (Show all) makes the
entire movie visible in the specified area
without distortion, while maintaining the
original aspect ratio of the movie. Borders may
appear on two sides of the
movie.
No Border scales the movie to fill
the specified area, without distortion but
possibly with some cropping, while maintaining
the original aspect ratio of the movie.
Exact Fit makes the entire movie
visible in the specified area without trying to
preserve the original aspect ratio. Distortion
may
occur.
ALIGN - (l, t, r, b)
Default centers the movie in the browser
window and crops edges if the browser window is
smaller than the movie.
Left, Right, Top, and
Bottom align the movie along the
corresponding edge of the browser window and
crop the remaining three sides as needed.
SALIGN - (l, t, r, b, tl, tr, bl,
br)
L, R, T, and B align the
movie along the left, right, top or bottom edge,
respectively, of the browser window and crop the
remaining three sides as
needed.
TL and TR align the movie
to the top left and top right corner,
respectively, of the browser window and crop the
bottom and remaining right or left side as
needed.
BL and BR align the movie
to the bottom left and bottom right corner,
respectively, of the browser window and crop the
top and remaining right or left side as
needed.
WMODE - (window, opaque,
transparent) Sets the Window Mode property of
the Flash movie for transparency, layering, and
positioning in the browser.
Window movie plays in its own
rectangular window on a web
page.
Opaque the movie hides everything
on the page behind it .
Transparent the
background of the HTML page shows through all
transparent portions of the movie, this may slow
animation
performance.
BGCOLOR - (#RRGGBB, hexadecimal
RGB value) Specifies the background color of the
movie. Use this attribute to override the
background color setting specified in the Flash
file. This attribute does not affect the
background color of the HTML page.
BASE - ( . or base
directory or URL) Specifies the base
directory or URL used to resolve all relative
path statements in the Flash Player movie. This
attribute is helpful when your Flash Player
movies are kept in a different directory from
your other files.
FLASHVARS (variable
to pass to Flash Player) Requires Macromedia Flash Player 6 or
later.
Used to send root level variables to the
movie. The format of the string is a set of
name=value combinations separated by
'&'.
Browsers will support string sizes of up
to 64KB (65535 bytes) in
length.